package API.ExceptionAPI.CatchError.Logic;

public class IfNotCatched {
    public static void main(String[] args) throws Exception{
        // 如果抛出的异常没有捕获, 将按照JVM默认方式处理
        try {
            throw new Exception("My Expection");
        } catch (RuntimeException e) {
            System.out.println(e.getMessage());
        }
        System.out.println("Will I execute?");
    }
}
